package com.demo.sharelucas.record;

/**
 * @Author yaodong
 * @Date 2024/9/17 16:54
 * @Version 1.0
 */
public class Test {
    public static void main(String[] args) {
       Person1 person1 = new Person1("lucas",1);
        System.out.println(person1);
        System.out.println(person1.greet());
        System.out.println(Person1.of("Haha",1));

        Person person = new Person("jim",new Person.Address("tianfusanjie","chengdu"));
        System.out.println(person);
        System.out.println(person.fullAddress());

        Shape shape = new Circle(2);
        System.out.println(shape.area());

        Person1 person2 = new Person1("lucas",-10);

    }
}
